package com.lzw.breezeNovel.webApp.mapper.novel;

import com.lzw.breezeNovel.model.entity.pojo.novel.Book;
import org.apache.ibatis.annotations.Mapper;



/**
 * @author 清风明月
 * @Package com.lzw.breezeNovel.webApp.mapper
 * @date 2025/3/2
 * @description 章节mapper
 */
@Mapper
@SuppressWarnings("all")
public interface ChapterMapper {


    /**
     * 根据书籍id和章节序号查询章节
     * @param bookId
     * @param chapterNumber
     * @return
     */
    Long selectByBookIdAndChapterNumber(Integer bookId, Integer chapterNumber);

    /**
     * 根据书籍id查询章节
     * @param bookId
     * @param userId
     * @return
     */
    Book selectByBookId(Long bookId);
}
